//
//  UIScrollView+TZExtension.h
//  TZOCExtension
//
//  Created by Tim.Z on 2017/1/3.
//  Copyright © 2017年 Tim.Z. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIScrollView (TZExtension)

@property (assign, nonatomic) CGFloat tz_contentInsetTop;
@property (assign, nonatomic) CGFloat tz_contentInsetBottom;
@property (assign, nonatomic) CGFloat tz_contentInsetLeft;
@property (assign, nonatomic) CGFloat tz_contentInsetRight;

@property (assign, nonatomic) CGFloat tz_contentOffsetX;
@property (assign, nonatomic) CGFloat tz_contentOffsetY;

@property (assign, nonatomic) CGFloat tz_contentSizeWidth;
@property (assign, nonatomic) CGFloat tz_contentSizeHeight;



/**
 Scroll content to top with animation.
 */
- (void)tz_scrollToTop;

/**
 Scroll content to bottom with animation.
 */
- (void)tz_scrollToBottom;

/**
 Scroll content to left with animation.
 */
- (void)tz_scrollToLeft;

/**
 Scroll content to right with animation.
 */
- (void)tz_scrollToRight;

/**
 Scroll content to top.
 
 @param animated  Use animation.
 */
- (void)tz_scrollToTopAnimated:(BOOL)animated;

/**
 Scroll content to bottom.
 
 @param animated  Use animation.
 */
- (void)tz_scrollToBottomAnimated:(BOOL)animated;

/**
 Scroll content to left.
 
 @param animated  Use animation.
 */
- (void)tz_scrollToLeftAnimated:(BOOL)animated;

/**
 Scroll content to right.
 
 @param animated  Use animation.
 */
- (void)tz_scrollToRightAnimated:(BOOL)animated;

@end
NS_ASSUME_NONNULL_END

